package com.zx.baofu.alcohol.mapper;

import com.zx.baofu.alcohol.model.ActiveTime;
import com.zx.baofu.alcohol.model.DailyLimit;
import com.zx.baofu.alcohol.model.ShareMsg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository(value = "settingMapper")
public interface SettingMapper {
    ActiveTime getActiveTime();

    int updateActiveTime(@Param("id") int id, @Param("prizeName") String prizeName, @Param("prizeValue") double prizeValue
            , @Param("prizeNum") int prizeNum, @Param("totalNum") Integer totalNum, @Param("start") String start, @Param("end") String end
            , @Param("manufacturer") String manufacturer, @Param("rule") String rule, @Param("description") String description
            , @Param("prizeStart") String prizeStart, @Param("prizeEnd") String prizeEnd);

    int availableTime();

    DailyLimit getDailyLimit();

    int updateDailyLimit(@Param("id") int id, @Param("limit") int limit);

    ShareMsg getShareMsg();

    int updateShareMsg(@Param("id") int id, @Param("title") String title, @Param("img") String img, @Param("content") String content);
}
